<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="//unpkg.com/alpinejs" defer init></script>
</head>
<body>
    <div x-data="{ search: '' }">
      <input type="text" x-model="search">

      Searching for: <span x-text="search"></span>
    </div>
</body>
</html>